package thread;

/**
 * 匿名内部类得方式创建Thread子类
 */
public class Demo4 {
    public static void main(String[] args) {
        Thread thread = new Thread() {
            public void run() {
                System.out.println(1111);
            }
        };
        thread.start();
    }
}
